import Header from "../header";
import { useState } from 'react';  
import { layoutStore }from "../../layoutStore";
import HomeBody from "./homeBody/index"
import "./index.css"
function Home() {
  const { isEnglish } = layoutStore;
  const [lan, setLan] = useState(isEnglish);
  const changeLanguage = () => {
    setLan(!lan);
    layoutStore.isEnglish = !isEnglish;
  };
    return (
      <>  
      <Header changeLanguage={changeLanguage}/>
      <HomeBody/>
      </>
    
    );
  }
  
  export default Home;